<%@ page import="com.model.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/25
  Time: 13:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    User user = (User) session.getAttribute("user");
    String photo_address = null;
    String user_name = null;
    if(user != null){
        photo_address = user.getPhoto_address();
        user_name = user.getUserName();
    }
%>

    <div class="main_header">
        <div class="log">
            <img src="/store/image/logo.jpg">
            <div class="sign">
                <span>608store</span>
                <span>608.com</span>
            </div>
        </div>
        <div class="search">
            <form name="search" action="get">
                <input type="search" placeholder="请在这里输入搜索信息">
                <input type="submit" value="">
            </form>
        </div>
        <div class="login">
            <span><a href="/store/jsp/login.jsp">登录</a>/<a href="/store/jsp/register.jsp">注册</a></span>
            <div class="personal_msg">
                <div class="top_part">
                    <a href="#" class="user_img"><img alt="用户头像" src="<%= photo_address%>"/></a>

                    <div class="user_txt" >
                        <div class="user_name">
                            <a href="#"><%= user_name%></a>
                        </div>
                        <div class="user_integral">
                            <a href="#">积分</a>
                            <span class="integral_num">42</span>
                        </div>
                    </div>

                </div>

                <div class="center_part">
                    <ul>
                        <li><a href="#">我的收藏</a></li>
                        <li><a href="#">订单中心</a></li>
                        <li><a href="#">积分商城</a></li>
                        <li><a href="/store/jsp/welcome.jsp">个人设置</a></li>
                    </ul>
                </div>

                <div class="bottom_part">
                    <a href="/store/login.do?action=logout">退出登录</a>
                </div>

            </div>
            <div class="customer_img">

                <img src="<%= photo_address%>">
            </div>
        </div>
        <div class="download">
            <span><a href="#">下载APP</a></span>
        </div>

        <div class="shopping">
            <span><a href="/store/jsp/shoppingCart.jsp">购物车</a></span>
        </div>
    </div>

